{% extends "base.html" %}



{% block content %}

<h2>
	Books
</h2>

<table class="records">
	<tr class="heading">
		<td>Author</td>
		<td>Name</td>
		<td>ISBN</td>
	<tr>
	{% for book in books %}
	<tr>
		<td>{{ book.book.author }}</td>
		<td>{{ book.book.name }}</td>
		<td>{{ book.book.isbn }}</td>
	<tr>
	{% endfor %}
</table>

<form action="/books" method="post">
	<fieldset>
		<legend>Books</legend>
		<div><label>Name</label><input type="text" name="name"/></div>
		<div><label>Author</label><input type="text" name="author"/></textarea></div>
		<div><label>ISBN</label><input type="text" name="isbn"/></textarea></div>
		<div><label><input class="submit" type="submit" value="Create book"></div>
	</fieldset>
</form>

{% endblock %}
